package com.mzj.solr;

import org.apache.solr.client.solrj.SolrClient;

public class SolrDelete {

	public static void delete(String index) throws Exception {
		SolrClient cloudClient = MSolrClient.getCloudClient();
		cloudClient.deleteByQuery(index, "*:*");
		cloudClient.commit(index);
		cloudClient.close();
	}
	
}
